package com.jhgsys.internal.sypq.service;

import com.jhgsys.internal.sypq.entity.*;
import com.jhgsys.internal.common.entity.QueryRequest;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 项目设置 Service接口
 *
 * @author ganjun
 * @date 2024-11-12 10:58:48
 */
public interface ISypqProjectService extends IService<SypqProject> {
    /**
     * 查询（分页）
     * @author ganjun
     * @date 2024-11-12 10:58:48
     * @param request QueryRequest
     * @param sypqProject sypqProject
     * @return IPage<SypqProject>
     */
    IPage<SypqProjectDto> findSypqProjectPage(QueryRequest request, SypqProjectDto sypqProject,String userid);

    /**
     * 查询（所有）
     * @author ganjun
     * @date 2024-11-12 10:58:48
     * @param sypqProject sypqProject
     * @return List<SypqProject>
     */
    List<SypqProjectDto> findSypqProjectList(SypqProjectDto sypqProject,String userid);

    List<SypqProject> findSypqProjectList(SypqProject sypqProject);

    /**
    * 根据ID查询
    * @author ganjun
    * @date 2024-11-12 10:58:48
    * @param id
    * @return SypqProject
    */
    SypqProject findSypqProjectById(String id);


    String  getNewProjectCode();
    /**
     * 新增
     * @author ganjun
     * @date 2024-11-12 10:58:48
     * @param sypqProject sypqProject
     */
    boolean createSypqProject(SypqProjectDtoParam sypqProject);

    /**
     * 修改
     * @author ganjun
     * @date 2024-11-12 10:58:48
     * @param sypqProject sypqProject
     */
    boolean updateSypqProject(SypqProjectDtoParam sypqProject);

    boolean commitSypqProject(SypqProjectDtoParam  sypqProjectDtoParam);

    boolean   saveAuditSypqProject(WorkflowRecord workflowRecord);

    /**
     * 逻辑删除
     * @author ganjun
     * @date 2024-11-12 10:58:48
     * @param sypqProject sypqProject
     * @param sypqProjectIds sypqProjectIds
     */
    boolean deleteSypqProject(SypqProject sypqProject,String sypqProjectIds);

    boolean  stopSypqProject(String sypqProjectIds);
    /**
    * 物理删除
    * @author ganjun
    * @date 2024-11-12 10:58:48
    * @param sypqProjectIds sypqProjectIds
    */
    boolean physicallyDeleteSypqProject(String sypqProjectIds);

    void   copymodel(String  projectCode,String newProjectcode);

    String  checkProject(SypqProject sypqProjectProject);
}
